pygrub: Fix elilo handling after password patch.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 21 Aug 2009 16:11:40 +0000 (17:11 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 21 Aug 2009 16:11:40 +0000 (17:11 +0100)
Signed-off-by: Michal Novotny <minovotn@redhat.com>
tools/pygrub/src/GrubConf.py
tools/pygrub/src/LiloConf.py

index 55da6f6055195ab8af1cfc01ea92ec92667ba156..7d7652f945763655d60ccff7e7a815feff2640a2 100644 (file)
@@ -219,7 +219,7 @@ class GrubConfigFile(object):
         try:
             getattr(self, self.commands['password'])
             return True
-        except KeyError, e:
+        except:
             return False
 
     def checkPassword(self, password):
index 9d69a9446b54adb6716becfc03ba8d026a4a1473..8f029571cf9f47119c52b4d4bc105aab7a2c80ff 100644 (file)
@@ -138,6 +138,12 @@ class LiloConfigFile(object):
         if len(img) > 0:
             self.add_image(LiloImage(img, path))
 
+    def hasPassword(self):
+        return False
+
+    def hasPasswordAccess(self):
+        return True
+
     def add_image(self, image):
         self.images.append(image)